package cn.webrx;

public class Str3 {
    public static void main(String[] args) {
        String s = "hello";
        String a = s.toUpperCase();
        s = "6";
        System.out.println(s);
        System.out.println(a);

        String cc = "aaaa";

        char[] cs = {'a','b','c'};
        System.out.println(new String(cs));

        char[] ccc = "abcd".toCharArray();
        System.out.println(ccc);


        // java """3个引号是 block块字符串
        String str = """
        String s = "hello";
        String a = s.toUpperCase();
        s = "6";
        System.out.println(s);
        System.out.println(a);

        String cc = "aaaa";

        char[] cs = {'a','b','c'};
        System.out.println(new String(cs));

        char[] ccc = "abcd".toCharArray();
        System.out.println(ccc); 
                """;
        System.out.println("---------------------------");
        System.out.println(str);



    }
}
